
<div ng-controller="PartsInvoDetailCtrl">
	
<div ng-include="'/templates/paramsSelect.html'"></div>
	<div class="page-heading">
		<ul class="breadcrumb">
			<li><a href="javascript:;">报表管理</a></li>
			<li >配件报表</li>
			<li class="active" ng-hide="menuName">配件进销存明细</li>
			<li class="active" ng-show="menuName" ng-bind="menuName"></li>
			<span style="margin-right:10px;"  class="btn btn-danger btn-xs pull-right btn-flag " ng-show="flag" ng-click="delFlag('/partsInvoicing/detail/')"><i class="fa fa-times"></i> 删除 </span>
			<span style="margin-right:10px;"  class="btn btn-info btn-xs pull-right btn-flag " ng-click="addFlag('#/partsInvoicing/detail/')"><i class="fa fa-star"></i> 收藏 </span>
		</ul>
	</div>
	<!-- 页面头部  end-->

	<!--页面内容显示区域-->
	<div class="wrapper">


		<div class="row">
			<div class="col-sm-12">
				<!--表格显示区域-->
				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						配件进销存明细

						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起-->
							<button type="button" class="btn btn-success pull-left" ng-click="SearchData()"
								style="margin-left: 5px;">
								<i class="fa fa-search"></i> 查询
							</button>
							<button type="button" class="btn btn-info  pull-left" ng-click="ExportData()"
								style="margin-left: 5px;">
								<i class="fa fa-table"></i> 导出EXCEL
							</button> <a href="javascript:;" class="fa fa-chevron-up form_display"></a>

						</span>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal form_hide">
						<div class="row">
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">事业部</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="group_name" ng-keyup="clearGroup()"  name="group_name"   class="form-control select_edit form_params" />
                                            <ul class="select_list">
                                                  <li ng-repeat="e in groups" ng-click='LoadBrands(e.group_name)' val_code="{{e.group_name}}" val_name="{{e.group_name}}">{{e.group_name}}</li>
                                            </ul>  
                                            </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面品牌</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_brand_name" ng-keyup="clearGroupBrand()"  name="entity_brand_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in gBrands" ng-click='LoadEntitys(e)' val_code="{{e.brand_code}}" val_name="{{e.brand_name}}">{{e.brand_name}}</li>
                                            </ul> 
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">店面信息</label>
									<div class="col-lg-8 col-sm-7">
											<input type="text" id="entity_name" ng-keyup="clearGroupBrandEntity()" name="entity_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in entitys" ng-click='LoadEntityLevel(e)' val_code="{{e.entity_code}}" val_name="{{e.entity_name}}">{{e.entity_name}}({{e.entity_code}})</li>
                                            </ul>  
									</div>
								</div>
							</div>
							<!-- 会计年度-->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">会计年度</label>
									<div class="col-lg-8 col-sm-7">
										<input name="report_year" id="report_year" type="number" min="0" onkeyup="value=value.replace(/[^\d]/g,'') " class="form-control form_params" />
									</div>
								</div>
							</div>
							
							
							<!-- 会计月度-->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">会计月度</label>
									<div class="col-lg-8 col-sm-7">
										<select name="report_month" id="report_month"  class="form-control form_params" >
									        <option ng-selected="01==selected.report_month" value="01">01</option>
											<option ng-selected="02==selected.report_month" value="02">02</option>
											<option ng-selected="03==selected.report_month" value="03">03</option>
											<option ng-selected="04==selected.report_month" value="04">04</option>
											<option ng-selected="05==selected.report_month" value="05">05</option>
											<option ng-selected="06==selected.report_month" value="06">06</option>
											<option ng-selected="07==selected.report_month" value="07">07</option>
											<option ng-selected="08==selected.report_month" value="08">08</option>
											<option ng-selected="09==selected.report_month" value="09">09</option>
											<option ng-selected="10==selected.report_month" value="10">10</option>
											<option ng-selected="11==selected.report_month" value="11">11</option>
											<option ng-selected="12==selected.report_month" value="12">12</option>
										</select>
									</div>
								</div>
							</div>
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">配件代码</label>
									<div class="col-lg-8 col-sm-7">
										<input name="part_no" class="form-control form_params" />
									</div>
								</div>
							</div>
							
							
							<!-- 出库日期-->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label long_title" >最新出<br>库日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="lastStockOut1" class="form-control form_params" id="lastStockOut1" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'lastStockOut2\')||\'2020-10-01\'}'})">
											
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" >至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class=" input-large custom-date-range">
											 <input type="text" name="lastStockOut2" class="form-control form_params" id="lastStockOut2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'lastStockOut1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">仓库</label>
									<div class="col-lg-8 col-sm-7">
									     <select name="storagecodename" id="storageCodeName" multiple="multiple" class="form-control form_params">
										 </select>
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">九大类</label>
									<div class="col-lg-8 col-sm-7">
										<select name="part_main_type" class="form-control form_params">
											<option></option>
											<option  ng-selected="b.status_code==selected.statusdispatched" ng-repeat="b in partmain_list" value="{{b.status_code}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">配件类别</label>
									<div class="col-lg-8 col-sm-7">
										<select name="partgroupcode" class="form-control form_params">
											<option></option>
											<option  ng-selected="b.status_code==selected.statusdispatched" ng-repeat="b in part_list" value="{{b.status_desc}}">{{b.status_desc}}</option>
										</select>
										
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">二级类别</label>
									<div class="col-lg-8 col-sm-7">
                                            <select name="subgroupname" id="subgroupname" class="form-control form_params" ng-model="subGroupName"  ng-change="loadThird(subGroupName)" >
												<option></option>
												<option   ng-repeat="b in sub_list" value="{{b.name}}" val_code="{{b.code}}">{{b.name}}</option>
										    </select>
                                    </div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">三级类别</label>
									<div class="col-lg-8 col-sm-7">
									       <select name="thirdgroupname" id="thirdgroupname" class="form-control form_params" ng-model="thirdGroupName" ng-change="loadFourth(thirdGroupName)" >
												<option></option>
												<option   ng-repeat="b in third_list_sel" value="{{b.name}}">{{b.name}}</option>
										    </select>
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">四级类别</label>
									<div class="col-lg-8 col-sm-7">
										    <select name="fourthgroupname" id="fourthgroupname" class="form-control form_params" >
										 		<option></option>
												<option  ng-repeat="b in fourth_list_sel" value="{{b.name}}">{{b.name}}</option>
										    </select>
									</div>
								</div>
							</div>
						</div>
					</div>
				</section>

				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						配件进销存明细
						<headshow></headshow>
						<div class="option_check_list" style="display: inline-block;"></div>
					
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起--> <a
							href="javascript:;" class="fa fa-chevron-down"></a>
						</span>
						<div class="pull-right"
							style="margin-right: 10px; margin-top: -6px; display: inline-block">
							<button type="button" class="btn btn-danger btn-sm " href="#paramsSelect"
								data-toggle="modal">
								<i class="fa fa-plus"></i> 在结果集中筛选
							</button>
							<button type="button" class="btn btn-success btn-sm"
								id="search_table" ng-click="SearchData();">
								<i class="fa fa-search"></i> 查询表格
							</button>
						</div>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal ">

						<div class="adv-table" style="overflow-x: scroll">
							<table id="cotyTable"
								class="table table-striped  nowrap  dataTable no-footer table_store table-hover float_head"
								cellspacing="0" width="100%">
								<thead>
									<tr>
										<th ng-show="!cols.contains('index_id')" column="index_id">序号</th>
										<th ng-show="!cols.contains('entity_code')" column="entity_code">店面编号</th>
										<th ng-show="!cols.contains('entity_name')" column="entity_name">店面名称</th>
										<th ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">店面品牌</th>
										<th ng-show="!cols.contains('group_name')" column="group_name">事业部</th>
										<th ng-show="!cols.contains('storagecodename')" column="storagecodename">仓库</th>
										<th ng-show="!cols.contains('storagepositioncode')" column="storagepositioncode">库位代码</th>
										<th ng-show="!cols.contains('part_no')" column="part_no">配件代码</th>
										<th ng-show="!cols.contains('partgroupcode')" column="partgroupcode">配件类别</th>
										<th ng-show="!cols.contains('partname')" column="partname">配件名称</th>
										<th ng-show="!cols.contains('subgroupname')" column="subgroupname">二级类别</th>
										<th ng-show="!cols.contains('thirdgroupname')" column="thirdgroupname">三级类型</th>
										<th ng-show="!cols.contains('fourthgroupname')" column="fourthgroupname">四级类别</th>
										<th ng-show="!cols.contains('partmaintypename')" column="partmaintypename">九大类</th>
										<th qtype='date' ng-show="!cols.contains('last_stock_out')" column="last_stock_out">最新出库日期</th>
										<th qtype='float' ng-show="!cols.contains('openquantity')" column="openquantity">期初数量</th>
										<th qtype='float' ng-show="!cols.contains('openprice')" column="openprice">期初单价</th>
										<th qtype='float' ng-show="!cols.contains('openamount')" column="openamount">期初金额</th>
										<th qtype='float' ng-show="!cols.contains('closequantity')" column="closequantity">期末数量</th>
										<th qtype='float' ng-show="!cols.contains('closeprice')" column="closeprice">期末单价</th>
										<th qtype='float' ng-show="!cols.contains('closeamount')"  column="closeamount">期末金额</th>
										<th qtype='float' ng-show="!cols.contains('inquantity')" column="inquantity">入库数量</th>
										<th qtype='float' ng-show="!cols.contains('stockinamount')" column="stockinamount">入库金额</th>
										<th qtype='float' ng-show="!cols.contains('outquantity')" column="outquantity">出库数量</th>
										<th qtype='float' ng-show="!cols.contains('stockoutcostamount')" column="stockoutcostamount">出库成本金额</th>
										<th qtype='float' ng-show="!cols.contains('outamount')" column="outamount">出库金额</th>
										<th qtype='float' ng-show="!cols.contains('buyincount')" column="buyincount">采购入库数量</th>
										<th qtype='float' ng-show="!cols.contains('buyinamount')" column="buyinamount">采购入库金额</th>
										<th qtype='float' ng-show="!cols.contains('allocateincount')" column="allocateincount">调拨入库数量</th>
										<th qtype='float' ng-show="!cols.contains('allocateinamount')" column="allocateinamount">调拨入库金额</th>
										<th qtype='float' ng-show="!cols.contains('transferincount')" column="transferincount">移库入库数量</th>
										<th qtype='float' ng-show="!cols.contains('transferinamount')" column="transferinamount">移库入库金额</th>
										<th qtype='float' ng-show="!cols.contains('otherincount')" column="otherincount">其他入库数量</th>
										<th qtype='float' ng-show="!cols.contains('otherinamount')" column="otherinamount">其他入库金额</th>
										<th qtype='float' ng-show="!cols.contains('profitincount')" column="profitincount">报溢入库金额</th>
										<th qtype='float' ng-show="!cols.contains('profitinamount')" column="profitinamount">报溢入库数量</th>
										<th qtype='float' ng-show="!cols.contains('repairoutcount')" column="repairoutcount">维修领料数量</th>
										<th qtype='float' ng-show="!cols.contains('repairoutcostamount')" column="repairoutcostamount">维修领料成本金额</th>
										<th qtype='float' ng-show="!cols.contains('repairoutsaleamount')" column="repairoutsaleamount">维修领料销售金额</th>
										<th qtype='float' ng-show="!cols.contains('saleoutcount')" column="saleoutcount">配件销售数量</th>
										<th qtype='float' ng-show="!cols.contains('saleoutsaleamount')" column="saleoutsaleamount">配件销售金额</th>
										<th qtype='float' ng-show="!cols.contains('saleoutcostamount')" column="saleoutcostamount">配件销售成本金额</th>
										<th qtype='float' ng-show="!cols.contains('inneroutcount')" column="inneroutcount">内部领用数量</th>
										<th qtype='float' ng-show="!cols.contains('inneroutcostamount')" column="inneroutcostamount">内部领用成本金额</th>
										<th qtype='float' ng-show="!cols.contains('inneroutsaleamount')" column="inneroutsaleamount">内部领用销售金额</th>
										<th qtype='float' ng-show="!cols.contains('allocateoutcount')" column="allocateoutcount">调拨出库数量</th>
										<th qtype='float' ng-show="!cols.contains('allocateoutcostamount')" column="allocateoutcostamount">调拨出库成本金额</th>
										<th qtype='float' ng-show="!cols.contains('allocateoutsaleamount')" column="allocateoutsaleamount">调拨出库销售金额</th>
										<th qtype='float' ng-show="!cols.contains('upholsteroutcount')" column="upholsteroutcount">装潢配件出库数量</th>
										<th qtype='float' ng-show="!cols.contains('upholsteroutcostamount')" column="upholsteroutcostamount">装潢配件出库成本金额</th>
										<th qtype='float' ng-show="!cols.contains('upholsteroutsaleamount')" column="upholsteroutsaleamount">装潢出库金额</th>
										<th qtype='float' ng-show="!cols.contains('transferincount')" column="transferoutcount">移库出库数量</th>
										<th qtype='float' ng-show="!cols.contains('transferinamount')" column="transferoutcostamount">移库出库成本金额</th>
										<th qtype='float' ng-show="!cols.contains('lossoutcount')" column="lossoutcount">报损出库数量</th>
										<th qtype='float' ng-show="!cols.contains('lossoutamount')" column="lossoutamount">报损出库金额</th>
										<th qtype='float' ng-show="!cols.contains('otheroutcount')" column="otheroutcount">其他出库数量</th>
										<th qtype='float' ng-show="!cols.contains('otheroutcostamount')" column="otheroutcostamount">其他出库成本金额</th>
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat="c in partsInvo">
										<td ng-show="!cols.contains('index_id')" class="">{{$index + 1 }}</td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code">{{c.entity_code}}</td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name">{{c.entity_name}}</td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">{{c.entity_brand_name}}</td>
										<td ng-show="!cols.contains('group_name')" column="group_name">{{c.group_name}}</td>
										<td ng-show="!cols.contains('storagecodename')" class="">{{c.storagecodename}}</td>
										<td ng-show="!cols.contains('storagepositioncode')" column="storagepositioncode">{{c.storagepositioncode}}</td>
										<td ng-show="!cols.contains('part_no')" column="part_no">{{c.part_no}}</td>
										<td ng-show="!cols.contains('partgroupcode')" column="partgroupcode">{{c.partgroupcode}}</td>
										<td ng-show="!cols.contains('partname')" column="partname">{{c.partname}}</td>
										<td ng-show="!cols.contains('subgroupname')" column="subgroupname">{{c.subgroupname}}</td>
										<td ng-show="!cols.contains('thirdgroupname')" column="thirdgroupname">{{c.thirdgroupname}}</td>
										<td ng-show="!cols.contains('fourthgroupname')" column="fourthgroupname">{{c.fourthgroupname}}</td>
										<td ng-show="!cols.contains('partmaintypename')" column="partmaintypename">{{c.partmaintypename}}</td>
										<td qtype='date' ng-show="!cols.contains('last_stock_out')" column="last_stock_out">{{c.last_stock_out | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td qtype='float' ng-show="!cols.contains('openquantity')" column="openquantity">{{c.openquantity|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('openprice')" column="openprice">{{c.openprice|number:4}}</td>
										<td qtype='float' ng-show="!cols.contains('openamount')" column="openamount">{{c.openamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('closequantity')" column="closequantity">{{c.closequantity|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('closeprice')" column="closeprice">{{c.closeprice|number:4}}</td>
										<td qtype='float' ng-show="!cols.contains('closeamount')"  column="closeamount">{{c.closeamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inquantity')" column="inquantity">{{c.inquantity|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('stockinamount')" column="stockinamount">{{c.stockinamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('outquantity')" column="outquantity">{{c.outquantity|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('stockoutcostamount')" column="stockoutcostamount">{{c.stockoutcostamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('outamount')" column="outamount">{{c.outamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('buyincount')" column="buyincount">{{c.buyincount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('buyinamount')" column="buyinamount">{{c.buyinamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateincount')" column="allocateincount">{{c.allocateincount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateinamount')" column="allocateinamount">{{c.allocateinamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferincount')" column="transferincount">{{c.transferincount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferinamount')" column="transferinamount">{{c.transferinamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otherincount')" column="otherincount">{{c.otherincount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otherinamount')" column="otherinamount">{{c.otherinamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('profitincount')" column="profitincount">{{c.profitincount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('profitinamount')" column="profitinamount">{{c.profitinamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('repairoutcount')" column="repairoutcount">{{c.repairoutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('repairoutcostamount')" column="repairoutcostamount">{{c.repairoutcostamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('repairoutsaleamount')" column="repairoutsaleamount">{{c.repairoutsaleamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('saleoutcount')" column="saleoutcount">{{c.saleoutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('saleoutsaleamount')" column="saleoutsaleamount">{{c.saleoutsaleamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('saleoutcostamount')" column="saleoutcostamount">{{c.saleoutcostamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inneroutcount')" column="inneroutcount">{{c.inneroutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inneroutcostamount')" column="inneroutcostamount">{{c.inneroutcostamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inneroutsaleamount')" column="inneroutsaleamount">{{c.inneroutsaleamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateoutcount')" column="allocateoutcount">{{c.allocateoutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateoutcostamount')" column="allocateoutcostamount">{{c.allocateoutcostamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateoutsaleamount')" column="allocateoutsaleamount">{{c.allocateoutsaleamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('upholsteroutcount')" column="upholsteroutcount">{{c.upholsteroutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('upholsteroutcostamount')" column="upholsteroutcostamount">{{c.upholsteroutcostamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('upholsteroutsaleamount')" column="upholsteroutsaleamount">{{c.upholsteroutsaleamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferincount')" column="transferoutcount">{{c.transferoutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferinamount')" column="transferoutcostamount">{{c.transferoutcostamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('lossoutcount')" column="lossoutcount">{{c.lossoutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('lossoutamount')" column="lossoutamount">{{c.lossoutamount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otheroutcount')" column="otheroutcount">{{c.otheroutcount|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otheroutcostamount')" column="otheroutcostamount">{{c.otheroutcostamount|number:2}}</td>
									</tr>


                                    <tr class="tbody_last_tr"  ng-show="pagination.totalItems >0">
										<td ng-show="!cols.contains('index_id')" class=""></td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code"></td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name"></td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name"></td>
										<td ng-show="!cols.contains('group_name')" column="group_name"></td>
										<td ng-show="!cols.contains('storagecodename')" class=""></td>
										<td ng-show="!cols.contains('storagepositioncode')" column="storagepositioncode"></td>
										<td ng-show="!cols.contains('part_no')" column="part_no"></td>
										<td ng-show="!cols.contains('partgroupcode')" column="partgroupcode"></td>
										<td ng-show="!cols.contains('partname')" column="partname"></td>
										<td ng-show="!cols.contains('subgroupname')" column="subgroupname"></td>
										<td ng-show="!cols.contains('thirdgroupname')" column="thirdgroupname"></td>
										<td ng-show="!cols.contains('fourthgroupname')" column="fourthgroupname"></td>
										<td ng-show="!cols.contains('partmaintypename')" column="partmaintypename"></td>
										<td qtype='date' ng-show="!cols.contains('last_stock_out')" column="last_stock_out"></td>
										<td qtype='float' ng-show="!cols.contains('openquantity')" column="openquantity">{{partsInvoSum.sum_openquantity.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('openprice')" column="openprice"></td>
										<td qtype='float' ng-show="!cols.contains('openamount')" column="openamount">{{partsInvoSum.sum_openamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('closequantity')" column="closequantity">{{partsInvoSum.sum_closequantity.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('closeprice')" column="closeprice"></td>
										<td qtype='float' ng-show="!cols.contains('closeamount')"  column="closeamount">{{partsInvoSum.sum_closeamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inquantity')" column="inquantity">{{partsInvoSum.sum_inquantity.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('stockinamount')" column="stockinamount">{{partsInvoSum.sum_stockinamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('outquantity')" column="outquantity">{{partsInvoSum.sum_outquantity.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('stockoutcostamount')" column="stockoutcostamount">{{partsInvoSum.sum_stockoutcostamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('outamount')" column="outamount">{{partsInvoSum.sum_outamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('buyincount')" column="buyincount">{{partsInvoSum.sum_buyincount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('buyinamount')" column="buyinamount">{{partsInvoSum.sum_buyinamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateincount')" column="allocateincount">{{partsInvoSum.sum_allocateincount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateinamount')" column="allocateinamount">{{partsInvoSum.sum_allocateinamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferincount')" column="transferincount">{{partsInvoSum.sum_transferincount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferinamount')" column="transferinamount">{{partsInvoSum.sum_transferinamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otherincount')" column="otherincount">{{partsInvoSum.sum_otherincount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otherinamount')" column="otherinamount">{{partsInvoSum.sum_otherinamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('profitincount')" column="profitincount">{{partsInvoSum.sum_profitincount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('profitinamount')" column="profitinamount">{{partsInvoSum.sum_profitinamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('repairoutcount')" column="repairoutcount">{{partsInvoSum.sum_repairoutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('repairoutcostamount')" column="repairoutcostamount">{{partsInvoSum.sum_repairoutcostamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('repairoutsaleamount')" column="repairoutsaleamount">{{partsInvoSum.sum_repairoutsaleamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('saleoutcount')" column="saleoutcount">{{partsInvoSum.sum_saleoutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('saleoutsaleamount')" column="saleoutsaleamount">{{partsInvoSum.sum_saleoutsaleamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('saleoutcostamount')" column="saleoutcostamount">{{partsInvoSum.sum_saleoutcostamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inneroutcount')" column="inneroutcount">{{partsInvoSum.sum_inneroutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inneroutcostamount')" column="inneroutcostamount">{{partsInvoSum.sum_inneroutcostamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('inneroutsaleamount')" column="inneroutsaleamount">{{partsInvoSum.sum_inneroutsaleamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateoutcount')" column="allocateoutcount">{{partsInvoSum.sum_allocateoutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateoutcostamount')" column="allocateoutcostamount">{{partsInvoSum.sum_allocateoutcostamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('allocateoutsaleamount')" column="allocateoutsaleamount">{{partsInvoSum.sum_allocateoutsaleamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('upholsteroutcount')" column="upholsteroutcount">{{partsInvoSum.sum_upholsteroutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('upholsteroutcostamount')" column="upholsteroutcostamount">{{partsInvoSum.sum_upholsteroutcostamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('upholsteroutsaleamount')" column="upholsteroutsaleamount">{{partsInvoSum.sum_upholsteroutsaleamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferincount')" column="transferoutcount">{{partsInvoSum.sum_transferoutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('transferinamount')" column="transferoutcostamount">{{partsInvoSum.sum_transferoutcostamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('lossoutcount')" column="lossoutcount">{{partsInvoSum.sum_lossoutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('lossoutamount')" column="lossoutamount">{{partsInvoSum.sum_lossoutamount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otheroutcount')" column="otheroutcount">{{partsInvoSum.sum_otheroutcount.value|number:2}}</td>
										<td qtype='float' ng-show="!cols.contains('otheroutcostamount')" column="otheroutcostamount">{{partsInvoSum.sum_otheroutcostamount.value|number:2}}</td>
									</tr>
								</tbody>
							</table>
							<div class="no-items" ng-show="pagination.totalItems <= 0">暂无数据</div>

						</div>
						<tm-pagination conf="pagination"></tm-pagination>
					</div>
				</section>
				<!--表格显示区域-->

			</div>
		</div>
	</div>
	 
</div>

<form id="export_form" action="partsInvo/export"  method="post">
	<input type="hidden" name="keys" id="keys" />
	<input type="hidden" name="names" id="names" /> 
	<input type="hidden" name="params" id="params" />
	<input type="hidden" name="search_opt" id="search_opt" /> 
	<input type="hidden" name="file_name" id="file_name" value="配件进销存明细"/>
</form>
